package vip.george.springbootiptools.autocofnig;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import vip.george.springbootiptools.config.MyWebConfig;
import vip.george.springbootiptools.service.IpToolService;

@EnableScheduling
//@EnableConfigurationProperties(IpProperties.class)
@Import({IpToolProperties.class, MyWebConfig.class})
//@ConditionalOnProperty(prefix = "tools-ip", name = "enabled", havingValue = "true", matchIfMissing = false)
public class IpAutoConfiguration {


    @Bean
    public IpToolService ipToolService() {
        return new IpToolService();
    }
}
